﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PCCInfo.aspx.cs" Inherits="PCCInfo" %>
<%@ Register Assembly="AjaxControlToolkit"  Namespace="AjaxControlToolkit"  TagPrefix="ajaxToolkit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>合同信息一览</title>
       
        <link href="css/default.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript" src="Js/jquery-1.3.1.min.js"></script>
    
     <script type="text/javascript">
     //上传样品参数文件,必须创建合同之后，才能够上传参数文件
function InvokePopUploadParFile(report_id)
{
 
    var url= 'uploadfile2.aspx?parameterfile&pccid='+'<%=this.BtnUploadParFileHidden.ClientID%>'+'&report_id='+report_id ;
    window.open(url,'上传','height=400,width=600,resizable=yes');             
  
}

//上传报告文件
function InvokePopUploadFinalReport(report_id)
{
    var url= 'uploadfile2.aspx?report&pccid='+'<%=this.BtnUploadReportHidden.ClientID%>'+'&id='+report_id ;
    window.open(url,'上传','height=400,width=600,resizable=yes');                
  
}
//上传参数附件
function InvokePopUploadParAttach(report_id)
{
//alert('123');
    var url= 'uploadfile2.aspx?paratt&pccid='+'<%=this.BtnUploadParAttHidden1.ClientID%>'+'&report_id='+report_id ;
    window.open(url,'上传','height=400,width=600,resizable=yes');   
    
}

//选择审批人
function InvokePopSelectAuditor(report_id,flow)
{
  // to handle in IE 7.0          
        if (window.showModalDialog)
        {      
            retVal = window.showModalDialog("SelectAuditors.aspx?report_id=" + report_id+"&flow="+flow  ,'选择审批人',"dialogHeight:600px;dialogWidth:800px;resizable:no;center:yes");
            
        }
        // to handle in Firefox
        else
        {     
            retVal = window.open("SelectAuditors.aspx?report_id=" + report_id+"&flow="+flow  ,'选择审批人','height=600px,width=800px,resizable=yes,modal=yes');
                 
        }  
       // window.location.href=window.location.pathname+"?co_item_id="+co_item_id;     
         return true;
}

     </script>
</head>
<body>
    <form id="form1" runat="server">
       <%--<div id="header">
            <div id="logo">
                <h1>
                    <a href="#">AFC</a></h1>
                <p>
                    维修管理系统</p>
            </div>
        </div>--%>
         <ajaxToolkit:ToolkitScriptManager id="AjaxScriptManager" runat="server" EnableScriptGlobalization="true"
                        EnableScriptLocalization="true">
                    </ajaxToolkit:ToolkitScriptManager>
      
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td>
                    <img src="images/topBg.jpg" width="819" height="100"  alt="自动化的实验管理Web平台——EQT"/></td>
            </tr>
        </table>
    <div class="InfoArea">
    <h2><asp:Label ID="Label_Contract_Title" runat="server" Text=""></asp:Label></h2>       
    <hr /> 
    <table width="100%" border="1">
    <tr>
    <th>合同编号</th><td><asp:Label ID="Label_Report_ID" runat="server" Text=""></asp:Label></td><th>状态</th><td><asp:Label ID="Label_Report_Status" runat="server" Text=""/>
        &nbsp; &nbsp;&nbsp;  
            <strong>检测日期:<asp:Label ID="labCheckTime" runat="server" Font-Bold="False"/></strong> </td>    
    </tr>
    <tr><th colspan="4">委检单位信息</th></tr>
     <tr>
    <th>客户编号</th><td><asp:Label ID="Label_Client_ID" runat="server" Text=""/></td><th>单位名称</th><td><asp:Label ID="Label_Corp_Name" runat="server" Text=""/></td>    
    </tr>
     <tr>
    <th>通信地址</th> <td colspan="3"><asp:Label ID="Label_Corp_Addr" runat="server" Text=""/></td>    
    </tr>
     <tr>
    <th>联系方式</th> <td colspan="3"><asp:Label ID="Label_Tel_Email" runat="server" Text=""/></td>    
    </tr>
    <tr><th colspan="4">委检产品信息</th></tr>
    <tr><th>产品名称</th> <td><asp:Label ID="Label_PName" runat="server" Text=""/></td>
    <th>产品型号</th> <td><asp:Label ID="Label_PModel" runat="server" Text=""/>
        &nbsp; &nbsp;&nbsp;
        <asp:HyperLink ID="HyperLinkParaTemplate" runat="server">下载参数模板</asp:HyperLink>
        <asp:Button ID="BtnUploadParAttHidden" Text="" runat="server" Style="display: none"
                    OnClick="btnUploadParAtt_Click" /></td>
     </tr>
        <tr>
    <th>产品参数</th> <td colspan="3"><asp:Label ID="Label_PType" runat="server" Text=""/>
    [     <asp:HyperLink ID="HyperLink_Par_File" runat="server"/>    ]      
        
          <asp:Button ID="Button_Del_Par_File" runat="server" Text="删除参数文件" OnClientClick='return confirm("您确删除此参数文件吗？\r\n提示：仅当参数文件上传错误时才需要删除旧的文件，上传新文件。");' OnClick="Button_Del_Par_File_Click"/>
          <asp:Button ID="btnUploadParFile" runat="server" Text="上传参数文件" />
                <asp:Button ID="BtnUploadParFileHidden" Text="" runat="server" Style="display: none" OnClick="btnUploadParFile_Click" />
        <asp:Button ID="btnUploadParAtt" runat="server" Text="上传其他附件" /></td>    
        <asp:Button ID="BtnUploadParAttHidden1" Text="" runat="server" Style="display: none" OnClick="BtnUploadParAttHidden_Click" /></tr>
    <tr><th>附件</th><td colspan="3">
    
    <asp:Repeater ID="RepFile" runat="server" OnItemCommand="RepFile_OnItemCommand" OnItemDataBound="RepFile_OnItemDataBound">
    <ItemTemplate>
        <li>
        <a href="getfile.aspx?fileid=<%#DataBinder.Eval(Container.DataItem, "File_ID")%>" target="_blank">
            <%#DataBinder.Eval(Container.DataItem, "File_Name")%>
        </a>
        <asp:ImageButton ImageUrl="images/cross.gif" runat="server" ID="btnDeleteAttachment"  CommandName="del" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "File_ID") %>'/>
        </li>
    </ItemTemplate>
    </asp:Repeater>
    </td> </tr>
    
    <tr>
    <th colspan="4">检验任务信息</th>
        
    </tr>
    
    <tr><th><asp:Label ID="Label_Task_DDL" runat="server" Text=""/></th>
         <td><asp:CheckBox ID="CheckBox_DDL_Req" runat="server"  Text="需要执行" Enabled="False"/>
             模板:<asp:HyperLink ID="HyperLink_Tlt_Xls_DDL" runat="server"></asp:HyperLink></td>
       <th>
           原始记录文件</th> <td colspan="1"><asp:HyperLink ID="HyperLink_DOC_DDL" runat="server"/>
        </td> </tr>
        
         <tr><th><asp:Label ID="Label_Task_DRL" runat="server" Text=""/></th>
         <td><asp:CheckBox ID="CheckBox_DRL_Req" runat="server"  Text="需要执行" Enabled="False"/>模板:<asp:HyperLink ID="HyperLink_Tlt_Xls_DRL" runat="server"></asp:HyperLink></td>
       <th>
           原始记录文件</th> <td colspan="1"><asp:HyperLink ID="HyperLink_DOC_DRL" runat="server"></asp:HyperLink>
        </td> </tr>
        <tr><th>
            任务备注</th><td colspan="3"><asp:Label ID="Label_Pca_Rem" runat="server" Text=""/></td> </tr>
              <tr>
    <th colspan="4">报告文件</th>       
    </tr>
    <tr>
     <th>自动</th><td><asp:HyperLink ID="HyperLink_Report_File" runat="server"></asp:HyperLink></td>
        <th>手工</th><td><asp:HyperLink ID="HyperLink_Report_Mannul" runat="server"></asp:HyperLink>
         <asp:Button ID="Button_Del_Report_Mannul" runat="server" Text="删除手工报告文件" OnClientClick='return confirm("您确删除此报告文件吗？\r\n提示：仅当手工修订的报告文件有错误时才需要删除旧的文件，上传新文件。");' OnClick="Button_Del_Report_Mannul_Click"/>
          <asp:Button ID="Button_UploadReportMannul" runat="server" Text="上传手工文件" />
           <asp:Button ID="BtnUploadReportHidden" Text="" runat="server" Style="display: none"
                    OnClick="Button_UploadReportMannul_Click" />
        </td>
    </tr>
    
    <tr>
    <th>
        专家审核</th><td><asp:Label ID="LabelExperts" runat="server" Text=""/>
        <asp:Button ID="BtnSelectExperts" runat="server" Text="成员设置" OnClick="BtnSelectAuditor_Click" /></td>
    <td colspan="2"><asp:Label ID="Label_Expert_Advice" runat="server" Text=""/></td>
    </tr>
            
     
    </table>
    
    
        
    <p> 
    <span id="Chage" runat="server">合同金额：<asp:Label ID="Label_Charge" runat="server" ></asp:Label></span>
    </p>
    
    <asp:Panel ID="Panel1" runat="server" Style="display: none;width:500px;height:250px;" CssClass="modalPopup">             
              <asp:Panel ID="Panel3" runat="server" Style="cursor: move;background-color:#DDDDDD;border:solid 1px Gray;color:Black;height:30px">
                <div>
                    <p>审核意见：</p>
                </div>
            </asp:Panel>
             
                <div>
                  <asp:TextBox ID="TextBox_Confirm_Advice" runat="server" TextMode="MultiLine"  MaxLength="100" Width="480px" Height="91px"></asp:TextBox>         
                </div>
                <p style="text-align: center;">
                 <asp:RadioButton ID="RadioButton_Confirm" runat="server" Text="同意"  Checked="true" GroupName="CF"/>
                  
                 <asp:RadioButton ID="RadioButton_Reject" runat="server" Text="退回" GroupName="CF"/> <asp:DropDownList ID="DDL_RejectTO" runat="server"/>   </p>
                 <p style="text-align: center;">
                        <asp:Button ID="OkButton" runat="server" Text="确定" OnClick="OkButton_Click" />
                        <asp:Button ID="CancelButton" runat="server" Text="取消" />
                        
                    </p>
     </asp:Panel>
   
    
      <p style="text-align:center;">
      
      <!--业务组-->
      <asp:Button ID="Button_Del_Pcc" runat="server" Text="删除合同" OnClick="Button_Del_Pcc_Click"   OnClientClick='return confirm("您确认删除该合同吗?提示：仅可删除未开始实验的合同。");' />
      <asp:Button ID="Button_Send2Test" runat="server" Text="送检" OnClick="Button_Send2Test_Click"   />      
      <!--报告组-->
      <asp:Button ID="Button_Send2Audit" runat="server" Text="报告送审"  ToolTip="提交报告给专家审核。" OnClick="Button_Send2Audit_Click" />
      <!--专家组-->
      <asp:Button ID="ButtonConfirm" runat="server" Text="审批报告"  ToolTip="审定此报告是否符合要求。" OnClick="ButtonConfirm_Click" />&nbsp;
      <!--所有人-->
      <asp:Button ID="Button_OK" runat="server" Text="返回" OnClick="Button_OK_Click"     /></p>  
    </div>
        <asp:Button runat="server" ID="hiddenTargetControlForModalPopup" style="display:none"/>
        <ajaxToolkit:ModalPopupExtender runat="server" ID="programmaticModalPopup"
            TargetControlID="hiddenTargetControlForModalPopup"
            PopupControlID="Panel1" 
            BackgroundCssClass="modalBackground"
            DropShadow="True"
            PopupDragHandleControlID="Panel3"
            RepositionMode="RepositionOnWindowScroll" >
        </ajaxToolkit:ModalPopupExtender>
     <div id="footer">
            <p class="legal">
                &copy;2009 JGX. All Rights Reserved. &nbsp;&nbsp;&nbsp;&nbsp;
            </p>
        </div>
    </form>
</body>
</html>
